package com.lovol.surfaceviewdemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.lovol.surfaceviewdemo.view.BallView

class MovingBallActivity : AppCompatActivity() {

    var gameView: BallView? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        gameView = BallView(this)
        setContentView(gameView)
    }


    override fun onResume() {
        super.onResume()
        gameView?.resume()
    }

    override fun onPause() {
        super.onPause()
        gameView?.pause()
    }
}